package com.ruoyi.system.domain.zhuangxiumain.shopMain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 商家优惠卷表
 * **/
public class PreferentialCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠卷ID */
    private Integer preferentialId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Integer supplierId;
    private Integer numsupplierId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Integer productId;

    /** 优惠卷名称 */
    @Excel(name = "优惠卷名称")
    private String preferentialName;

    /** 优惠卷价格 */
    @Excel(name = "优惠卷价格")
    private Long preferentialPrice;

    /** 满减使用价格 */
    @Excel(name = "满减使用价格")
    private Long preferentialPriceMost;

    /** 优惠卷时间期间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠卷时间期间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date preferentialTime;

    /** 类型 */
    @Excel(name = "类型")
    private String preferentialType;

    /** 0 启用 1 禁用 */
    @Excel(name = "0 启用 1 禁用")
    private String preferentialState;

    /** 备用 */
    @Excel(name = "备用")
    private String preferentialRemark;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;
    private Date shijian;
    private Long numTime;

    public Date getShijian() {
        return shijian;
    }

    public void setShijian(Date shijian) {
        this.shijian = shijian;
    }

    public Long getNumTime() {
        return numTime;
    }

    public void setNumTime(Long numTime) {
        this.numTime = numTime;
    }

    public Integer getNumsupplierId() {
        return numsupplierId;
    }

    public void setNumsupplierId(Integer numsupplierId) {
        this.numsupplierId = numsupplierId;
    }

    public void setPreferentialId(Integer preferentialId)
    {
        this.preferentialId = preferentialId;
    }

    public Integer getPreferentialId()
    {
        return preferentialId;
    }
    public void setSupplierId(Integer supplierId)
    {
        this.supplierId = supplierId;
    }

    public Integer getSupplierId()
    {
        return supplierId;
    }
    public void setProductId(Integer productId)
    {
        this.productId = productId;
    }

    public Integer getProductId()
    {
        return productId;
    }
    public void setPreferentialName(String preferentialName)
    {
        this.preferentialName = preferentialName;
    }

    public String getPreferentialName()
    {
        return preferentialName;
    }
    public void setPreferentialPrice(Long preferentialPrice)
    {
        this.preferentialPrice = preferentialPrice;
    }

    public Long getPreferentialPrice()
    {
        return preferentialPrice;
    }
    public void setPreferentialPriceMost(Long preferentialPriceMost)
    {
        this.preferentialPriceMost = preferentialPriceMost;
    }

    public Long getPreferentialPriceMost()
    {
        return preferentialPriceMost;
    }
    public void setPreferentialTime(Date preferentialTime)
    {
        this.preferentialTime = preferentialTime;
    }

    public Date getPreferentialTime()
    {
        return preferentialTime;
    }
    public void setPreferentialType(String preferentialType)
    {
        this.preferentialType = preferentialType;
    }

    public String getPreferentialType()
    {
        return preferentialType;
    }
    public void setPreferentialState(String preferentialState)
    {
        this.preferentialState = preferentialState;
    }

    public String getPreferentialState()
    {
        return preferentialState;
    }
    public void setPreferentialRemark(String preferentialRemark)
    {
        this.preferentialRemark = preferentialRemark;
    }

    public String getPreferentialRemark()
    {
        return preferentialRemark;
    }
    public void setModifiedTime(Date modifiedTime)
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime()
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("preferentialId", getPreferentialId())
                .append("supplierId", getSupplierId())
                .append("productId", getProductId())
                .append("preferentialName", getPreferentialName())
                .append("preferentialPrice", getPreferentialPrice())
                .append("preferentialPriceMost", getPreferentialPriceMost())
                .append("preferentialTime", getPreferentialTime())
                .append("preferentialType", getPreferentialType())
                .append("preferentialState", getPreferentialState())
                .append("preferentialRemark", getPreferentialRemark())
                .append("modifiedTime", getModifiedTime())
                .append("numsupplierId", getNumsupplierId())
                .append("numTime", getNumTime())
                .append("shijian", getShijian())
                .toString();
    }



}
